﻿using DataAchive.Base;
using System.Collections.ObjectModel;

namespace DataAchive.Model.ViewModels
{
    public class SiteViewModel : ViewModelBase
    {

        #region SiteInfoWindow
        /// <summary>
        /// 查询数据
        /// </summary>
        ObservableCollection<SiteData> _allData = new ObservableCollection<SiteData>();
        public ObservableCollection<SiteData> AllData
        {

            get { return _allData; }
            set
            {
                _allData = value;
                OnPropertyChanged(nameof(AllData));
            }
        }

        private SiteData _siteQuery;
        public SiteData SiteQuery
        {
            get { return _siteQuery; }
            set
            {
                _siteQuery = value;
                OnPropertyChanged(nameof(SiteQuery));
            }
        }

        public class SiteData
        {
            public int Id { get; set; }

            public string Line_Id { get; set; }
            public string Equipment_Id { get; set; }
            public string IP { get; set; }
            public int? Row_Number { get; set; }
            public int? Row_Type { get; set; }
            public string Row_Order { get; set; }
            public int? Colum_Number { get; set; }
            public int? Colum_Type { get; set; }
            public string Colum_Order { get; set; }
            public int? Top_Bottom_Margin { get; set; }
            public int? Left_Right_Margin { get; set; }
            public string Shift_Start_Time { get; set; }
            public int? Shiftings { get; set; }
            public int? Cuttent_Shift { get; set; }
        }
        #endregion

    }
}
